<div style="padding:30px;">

{language text="here_is_a_listing_for_all"}

</div>
<br />

{messages block='ads'}

{if $iCnt}
{str_replace text="`viewing_ifrom_ito_out_of`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`"}
{/if}

{include file="$sRootPath/_blocks/pager_nav_button.html"}
<br />
{foreach from=$aItems item=aItem name=aitems}
<div class="header" style="padding:4px;font-size:10pt;">
<b>{language text="id"}</b> {$aItem.id} - <b>{language text="location"}:</b> {i18n key="Mod_Ads.location.`$aItem.type`"}</div>
<div class="border13">
<div style="padding:5px;">

<br />
<b>{language text="max_width_height"}:</b> {i18n key="Mod_Ads.location.`$aItem.type`.dim"}
<br /><br />

{$aItem.text}

<br /><br />

<form method="post" action="{url link='admin.extra.ads' id=$aItem.id type=$aItem.type}">
	<div><input type="hidden" name="type" value="{$aItem.type}" /></div>
	<textarea cols="50" rows="8" name="text">{$aItem.text|escape}</textarea>
	<div style="padding:5px;">
	<input type="submit" name="act[update]" value=" {language text="update_ad"} " />
	<span style="padding-left:10px;">
		<a class="link_action" href="{url link='admin.extra.ads' delete=$aItem.id type=$aItem.type}" onclick="return confirm('{language text="do_you_really_want_to_del_197"}');">[ {language text="delete_this_ad"} ]</a>
	</span>
	</div>
</form>

<br /><br />
</div>
</div>
<br /><br />
<br /><br />
{/foreach}
{include file="$sRootPath/_blocks/pager_nav_button.html"}
<br /><br />